<!--
 * @Author: windys
 * @Description: 
 * @Date: 2022-02-11 15:32:26
-->


<template>
  <router-view v-slot="{ Component }">
    <keep-alive>
      <component :is="Component" :key="$route.meta.title" v-if="$route.meta.keepAlive" />
    </keep-alive>
    <component :is="Component" :key="$route.meta.title" v-if="!$route.meta.keepAlive" />
  </router-view>
</template>



<script >
import {
  defineComponent,
  nextTick,
  onMounted,
  ref,
  watch,
  watchEffect,
} from "vue";
import { useRouter } from "vue-router";
export default defineComponent({
  components: {
  },
  setup() {
    const router = useRouter();
    return {
    };
  },
});
</script>


<style lang="scss" scoped></style>
